@use "../../components/tool-container/tool-container.component.scss";

.content {
  overflow: hidden;
  position: relative;
}

.terminal-box {
  height: 100%;
  width: 100%;

  ::ng-deep {
    .terminal {
      height: 100%;
    }

    .xterm {
      padding: 10px;
    }

    .xterm-viewport {
      scrollbar-width: thin !important;
      scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    }
  }
}

.log-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  color: #fff;

  .item {
    min-height: 24px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    padding-left: 10px; // margin-bottom: 10px;
    cursor: pointer;
    margin-bottom: 3px;
    color: #a5a5a5;
    border-left: 5px solid #3f3f3f;

    &.error {
      border-left: 5px solid #940b0d;
      background: rgba(148, 11, 13, 0.3);
    }

    &.warn {
      border-left: 5px solid #faad14;
    }

    &.info {
      border-left: 5px solid #5eb1ff;
    }

    &:hover {
      background-color: rgba(255, 255, 255, 0.2);
    }

    .date {
      margin-right: 10px;
      color: #3f8839;
    }

    .title {
      margin-right: 10px;
    }

    .icon {
      font-size: 20px;
      margin-right: 10px;
    }

    .text {
      color: #eee;
    }

    .btns {
      position: absolute;
      right: 10px;
    }

    .detail {
      width: 100%;
      flex-shrink: 0;
    }
  }
}

nz-tabset {
  ::ng-deep {
    nz-tabs-nav {
      height: 30px;
      margin: 0 !important;
    }

    .ant-tabs-tab {
      font-size: 12px !important;
      margin: 0 !important;

      button {
        padding: 0 10px;
        color: #a5a5a5;
      }
    }

    .ant-tabs-ink-bar {
      height: 1px !important;
    }

    .ant-tabs-tab-active {
      button {
        color: #fff !important;
      }
    }
  }

  &.ant-tabs-editable-card {
    ::ng-deep {
      button {
        padding: 0 !important;
        color: #a5a5a5;
      }

      .ant-tabs-tab {
        padding: 8px;
      }

      .ant-tabs-tab-remove {
        margin-right: -2px;
        margin-left: 4px;
      }
    }
  }
}

ngx-simplebar {
  height: 100%;
  width: 100%;

  ::ng-deep {
    .simplebar-content-wrapper {
      height: 100%;
    }

    .simplebar-content {
      height: 100%;
    }
  }
}